Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • coder_1340 1 post 21 karma points
    Feb 15, 2012 @ 09:12
    coder_1340
    0

    [New user] How to create own plugin for Umbraco

    I decided to build my website with umbraco.But I must create a plugin (I don't know what does it call :D) to process some information of user and post a result (the result looks like a normal topic).I cannot find any tutorial or document about this. I have a little knowledge about C# :D. Someone help me ? :(

    Thanks for helping!

  • Tom Fulton 2030 posts 4998 karma points c-trib
    Feb 15, 2012 @ 15:00
    Tom Fulton
    0

    Hi,

    It sounds like you want to create a form for users to enter data, not sure what you want to do with the results though, perhaps create a document in Umbraco?  Either way you have several options:

    - Create a .NET Usercontrol - you can create a normal .NET usercontrol and use it in Umbraco by wrapping it in a Macro.  Just create the usercontrol, copy it to /usercontrols/ and the DLL to /bin/, then create a Macro in the Developer section and pick that usercontrol.  Then you can insert that macro into a template.
    You can also use the Document API in your usercontrol if you want to create a document with the results.   Here's a video on working with usercontrols in Umbraco - and some info on the Document API.

    - Create a Razor script - if you have some C# knowledge you could also create a Razor script.  You could check out the Cultiv Razor Contact Form as a guide.  I think there is also a video that may help - Contact and Email a Friend Forms.

    - Use Umbraco Contour [project page] - this is a paid product that allows you to easily create forms for the front-end without doing any coding.  It also has some powerful 'workflow' capabilities, so out of the box you can have your form send emails, create umbraco documents, etc.  With some C# you can also create custom workflows to perform any other tasks you need.

    Hope this helps :)
    -Tom

Please Sign in or register to post replies

Write your reply to:

Draft